var {describe} = require('mocha');

const login = require('./login.js');//登录接口
const index = require('./routers/index.js');//登录接口
const users = require('./routers/users.js');//登录接口
const testEnvConfig = {
    url:"http://127.0.0.1:3000",
    token:null
}
index(testEnvConfig);
describe('需要token认证的接口', async function() {
    testEnvConfig.token = await login(testEnvConfig);
    users(testEnvConfig);
});

